/* El escaparate del DLC del tren (src/train-promo.js). Va en todas las builds: en free y VIP es lo único
   del DLC, así que repite lo justo de src/train/title-train.css para la entrada y el fondo pintado. */

/* --- The entry and its painted night (only when title-train.css is not there) --- */
.tp-bg.tt-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; overflow: hidden;
    transition: opacity 1.1s ease; background: #050b14; }
.tp-bg.tt-bg.is-on { opacity: 1; }
.tp-bg .tt-paint { position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 32% at 68% 22%, rgba(110, 255, 200, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 22% at 82% 30%, rgba(150, 120, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #06101d 0%, #0b1a2c 48%, #a9c3d9 49%, #5d7a92 62%, #142232 100%); }
.tp-bg .tt-paint::after { content: ""; position: absolute; left: 30%; right: 0; top: 47%; height: 4%;
    background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 186, 102, 0.85) 22px 30px, transparent 30px 44px);
    filter: blur(1px); opacity: 0.8; }
#titleScreen .title-moon { transition: opacity 0.9s ease; }
#titleScreen.tt-train .title-moon { opacity: 0; }

.tx-entry.is-promo { margin-top: 6px; }
.tx-entry.is-promo .tt-num svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tx-entry.is-promo .tt-num { color: #bfe6ff; border-color: rgba(159, 216, 255, 0.55); }
.tx-entry.is-promo.is-selected .tt-num { color: #06101d; background: linear-gradient(180deg, #e9f6ff, #9fd8ff); border-color: #e9f6ff;
    box-shadow: 0 0 18px rgba(159, 216, 255, 0.55); }
.tx-entry.is-promo .tx-label { color: #dff1ff; }
.tx-entry.is-promo.is-selected .tx-label { color: #ffffff; text-shadow: 0 0 22px rgba(159, 216, 255, 0.55); }
.tx-entry.is-dlc .tt-badge { color: #bfe6ff; border-color: rgba(159, 216, 255, 0.5); background: rgba(10, 26, 44, 0.6); }
.tx-entry.is-dlc.is-selected .tt-badge { color: #06101d; background: #bfe6ff; border-color: #e9f6ff; }
.tx-detail[data-mode="train"] .tx-detail-eyebrow { color: #9fd8ff; }
.tx-detail[data-mode="train"] .tx-detail-title span { color: #f2f9ff; text-shadow: 0 0 26px rgba(159, 216, 255, 0.45); }
.tx-detail[data-mode="train"] .tx-detail-tags li { border-color: rgba(159, 216, 255, 0.45); color: #d6efff; }

/* --- The panel ----------------------------------------------------------- */
.tp-panel { position: fixed; inset: 0; z-index: 6500; display: grid; place-items: center; padding: 24px;
    background: radial-gradient(ellipse at 60% 30%, rgba(10, 30, 50, 0.74), rgba(2, 5, 10, 0.93));
    backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s ease; font-family: 'Outfit', system-ui, sans-serif; color: #ece6d6; }
.tp-panel.is-open { opacity: 1; }
.tp-box { width: min(880px, 100%); max-height: 100%; overflow: auto; border-radius: 8px; transform: translateY(10px); transition: transform 0.35s ease;
    background: linear-gradient(180deg, rgba(12, 22, 36, 0.97), rgba(6, 11, 19, 0.98));
    border: 1px solid rgba(159, 216, 255, 0.35);
    box-shadow: inset 0 0 0 4px rgba(6, 11, 19, 0.8), inset 0 0 0 5px rgba(159, 216, 255, 0.16), 0 24px 70px rgba(0, 0, 0, 0.6); }
.tp-panel.is-open .tp-box { transform: none; }
.tp-art { position: relative; aspect-ratio: 16 / 5.6; overflow: hidden; border-radius: 8px 8px 0 0; }
.tp-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.tp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 11, 19, 0.95)); }
.tp-eyebrow, .tp-title { position: absolute; left: 26px; right: 26px; z-index: 1; margin: 0; }
.tp-eyebrow { bottom: 58px; font: 600 0.78rem 'Cinzel', Georgia, serif; letter-spacing: 0.32em; text-transform: uppercase; color: #9fd8ff; }
.tp-title { bottom: 16px; font: 600 clamp(1.5rem, 3vw, 2.2rem) 'Cinzel', Georgia, serif; letter-spacing: 0.06em; color: #f2f9ff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }
.tp-body { padding: 16px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.tp-lead { margin: 0; font-size: 1rem; line-height: 1.5; color: #d9dee2; }
.tp-has { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 4px; font-size: 0.92rem; color: #c3ccd4; }
.tp-has li::marker { color: #9fd8ff; }
.tp-crew-h { margin: 4px 0 0; font: 600 0.72rem 'Cinzel', Georgia, serif; letter-spacing: 0.24em; text-transform: uppercase; color: #9fd8ff; }
.tp-crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tp-crew li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(159, 216, 255, 0.22); background: rgba(14, 28, 44, 0.6); }
.tp-crew img { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #0b1a2c; border: 1px solid rgba(159, 216, 255, 0.4); }
.tp-crew b { font: 600 0.95rem 'Cinzel', Georgia, serif; color: #f2f9ff; letter-spacing: 0.05em; }
.tp-crew small { font-size: 0.78rem; color: #aab5bf; }
.tp-where { margin: 4px 0 0; font-size: 0.86rem; color: #aab5bf; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.tp-cta { font: 600 0.95rem 'Cinzel', Georgia, serif; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
    color: #06101d; background: linear-gradient(180deg, #e9f6ff, #9fd8ff); border: 1px solid #f2faff; border-radius: 4px; padding: 11px 22px;
    box-shadow: 0 6px 18px rgba(159, 216, 255, 0.25); transition: transform 0.15s, box-shadow 0.15s; }
.tp-cta:hover, .tp-cta:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(159, 216, 255, 0.5); outline: none; }
.tp-back { font: 0.9rem 'Outfit', system-ui, sans-serif; color: #a9b4bf; background: none; border: 1px solid rgba(169, 180, 191, 0.35);
    border-radius: 4px; padding: 9px 18px; cursor: pointer; }
.tp-back:hover, .tp-back:focus-visible { color: #ece6d6; border-color: #ece6d6; outline: none; }
@media (max-width: 720px) { .tp-crew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .tp-panel, .tp-box, .tp-bg.tt-bg { transition-duration: 0.01s; } }

/* --- D5 · The demo: badge, entry screen, padlock card, end screen ----------------------------- */
.tx-entry.is-demo .tt-badge { color: #06101d; background: linear-gradient(180deg, #ffe2b0, #f5b46a); border-color: #ffe9c4;
    letter-spacing: 0.14em; font-weight: 700; box-shadow: 0 0 14px rgba(245, 180, 106, 0.45); }
.tx-entry.is-demo.is-selected .tt-badge { color: #06101d; background: #ffe9c4; }

.tdm-entry, .tdm-end { position: fixed; inset: 0; z-index: 6500; background: #03070d; color: #ece6d6; overflow: hidden;
    font-family: 'Outfit', system-ui, sans-serif; opacity: 0; transition: opacity 0.35s ease; }
.tdm-entry.is-open, .tdm-end.is-open { opacity: 1; }
.tdm-end { z-index: 9700; }
.tdm-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(0.95); transform: scale(1.04); }
.tdm-veil { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(3, 7, 13, 0.82) 0%, rgba(3, 7, 13, 0.55) 45%, rgba(3, 7, 13, 0.25) 100%),
                linear-gradient(180deg, rgba(3, 7, 13, 0) 40%, rgba(3, 7, 13, 0.92) 85%); }
.tdm-veil.is-deep { background: linear-gradient(180deg, rgba(3, 7, 13, 0.55) 0%, rgba(3, 7, 13, 0.88) 45%, rgba(3, 7, 13, 0.96) 80%); }
.tdm-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: clamp(18px, 6vh, 70px) clamp(16px, 6vw, 80px) 40px;
    display: flex; flex-direction: column; gap: 34px; }
.tdm-scroll > * { flex: none; }
.tdm-hero { max-width: 640px; display: flex; flex-direction: column; gap: 14px; min-height: min(62vh, 520px); justify-content: center; }
.tdm-hero.is-end { min-height: 0; max-width: 760px; margin: 4vh auto 0; text-align: center; align-items: center; }
.tdm-eyebrow { margin: 0; font: 600 0.78rem 'Cinzel', Georgia, serif; letter-spacing: 0.3em; text-transform: uppercase; color: #9fd8ff;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tdm-pill { font: 700 0.72rem 'Outfit', system-ui, sans-serif; letter-spacing: 0.16em; color: #06101d; padding: 4px 10px; border-radius: 3px;
    background: linear-gradient(180deg, #ffe2b0, #f5b46a); box-shadow: 0 0 18px rgba(245, 180, 106, 0.45); }
.tdm-title { margin: 0; font: 600 clamp(1.9rem, 4.6vw, 3.4rem) 'Cinzel', Georgia, serif; line-height: 1.08; color: #f6fbff; letter-spacing: 0.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85), 0 0 40px rgba(159, 216, 255, 0.25); }
.tdm-lead { margin: 0; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; color: #dfe5ea; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.tdm-note { margin: 0; font-size: 0.85rem; color: #a8b4bf; }
.tdm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.tdm-hero.is-end .tdm-actions { justify-content: center; }
.tdm-play { font: 600 1.02rem 'Cinzel', Georgia, serif; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
    color: #06101d; background: linear-gradient(180deg, #e9f6ff, #9fd8ff); border: 1px solid #f2faff; border-radius: 4px; padding: 14px 30px;
    box-shadow: 0 8px 26px rgba(159, 216, 255, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.tdm-play:hover, .tdm-play:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(159, 216, 255, 0.6); outline: none; }
.tdm-pass { font: 600 0.95rem 'Cinzel', Georgia, serif; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    color: #ffe2b0; background: rgba(40, 22, 6, 0.55); border: 1px solid rgba(245, 180, 106, 0.75); border-radius: 4px; padding: 13px 24px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.tdm-pass:hover, .tdm-pass:focus-visible { color: #06101d; background: linear-gradient(180deg, #ffe2b0, #f5b46a); box-shadow: 0 8px 26px rgba(245, 180, 106, 0.45); outline: none; }
.tdm-pass.is-big { color: #06101d; background: linear-gradient(180deg, #ffe2b0, #f5b46a); font-size: 1.05rem; padding: 15px 30px;
    box-shadow: 0 8px 30px rgba(245, 180, 106, 0.4); }
.tdm-pass.is-small { font-size: 0.82rem; padding: 9px 14px; }
.tdm-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem;
    color: #d6e2ec; background: rgba(6, 12, 20, 0.6); border: 1px solid rgba(169, 180, 191, 0.4); }
.tdm-x:hover, .tdm-x:focus-visible { color: #fff; border-color: #fff; outline: none; }
.tdm-menu { font: 0.92rem 'Outfit', system-ui, sans-serif; color: #b9c4ce; background: rgba(6, 12, 20, 0.5); cursor: pointer;
    border: 1px solid rgba(169, 180, 191, 0.4); border-radius: 4px; padding: 12px 20px; }
.tdm-menu:hover, .tdm-menu:focus-visible { color: #fff; border-color: #fff; outline: none; }

.tdm-more, .tdm-trip, .tdm-left, .tdm-passbox { width: 100%; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.tdm-h { margin: 6px 0 0; font: 600 0.76rem 'Cinzel', Georgia, serif; letter-spacing: 0.26em; text-transform: uppercase; color: #9fd8ff; }
.tdm-h2 { margin: 6px 0 0; font: 600 0.7rem 'Outfit', system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #8fa3b4; }
.tdm-more .tp-has { color: #c9d2da; }
.tdm-strip, .tdm-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tdm-strip figure, .tdm-grid figure { position: relative; margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b1a2c;
    border: 1px solid rgba(159, 216, 255, 0.22); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.tdm-vid { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdm-strip figcaption, .tdm-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 0.8rem; color: #f2f6fa;
    background: linear-gradient(180deg, transparent, rgba(3, 7, 13, 0.88)); }

.tdm-trip { max-width: 760px; padding: 18px 22px; border-radius: 8px; background: rgba(8, 18, 30, 0.72); border: 1px solid rgba(159, 216, 255, 0.22); }
.tdm-trip p { margin: 0; color: #dfe5ea; }
.tdm-list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; color: #c9d2da; }
.tdm-list li::marker { color: #f5b46a; }
.tdm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tdm-chips li { padding: 5px 11px; border-radius: 999px; font-size: 0.85rem; color: #ffe2b0; border: 1px solid rgba(245, 180, 106, 0.55); background: rgba(40, 22, 6, 0.4); }
.tdm-figs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tdm-figs li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px; border-radius: 6px;
    background: rgba(8, 18, 30, 0.7); border: 1px solid rgba(159, 216, 255, 0.18); }
.tdm-figs b { font: 600 1.35rem 'Cinzel', Georgia, serif; color: #f6fbff; }
.tdm-figs span { font-size: 0.78rem; color: #a8b4bf; line-height: 1.3; }
.tdm-passbox { flex-direction: row; align-items: center; gap: 28px; padding: 22px; border-radius: 10px; box-sizing: border-box;
    background: linear-gradient(120deg, rgba(40, 22, 6, 0.55), rgba(8, 18, 30, 0.8)); border: 1px solid rgba(245, 180, 106, 0.4); }
.tdm-passimg { width: min(48%, 520px); height: auto; flex: none; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6)); transform: rotate(-2deg); }
.tdm-passcopy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tdm-passcopy .tdm-h { color: #f5b46a; }

/* the padlock card: over the game, like the marks card (.mk-card, z 9600) */
.tdm-lock { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 9600; width: min(440px, calc(100vw - 32px));
    transform: translate(-50%, 14px) scale(0.98); opacity: 0; transition: transform 0.32s ease, opacity 0.32s ease;
    border-radius: 8px; overflow: hidden; color: #ece6d6; font-family: 'Outfit', system-ui, sans-serif;
    background: linear-gradient(180deg, rgba(12, 22, 36, 0.98), rgba(6, 11, 19, 0.99)); border: 1px solid rgba(245, 180, 106, 0.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.tdm-lock.is-open { transform: translate(-50%, 0) scale(1); opacity: 1; }
.tdm-lock-media { aspect-ratio: 16 / 9; background: #0b1a2c; }
.tdm-lock-media.is-art { aspect-ratio: 16 / 6; }
.tdm-lock-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; filter: saturate(0.85) brightness(0.8); }
.tdm-lock-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.tdm-lock-head { margin: 0; font: 600 0.78rem 'Cinzel', Georgia, serif; letter-spacing: 0.2em; text-transform: uppercase; color: #f5b46a; }
.tdm-lock-head b { color: #f6fbff; letter-spacing: 0.06em; }
.tdm-lock-line { margin: 0; font-size: 0.98rem; color: #dfe5ea; }
.tdm-lock-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.tdm-keep { font: 0.88rem 'Outfit', system-ui, sans-serif; color: #b9c4ce; background: none; cursor: pointer;
    border: 1px solid rgba(169, 180, 191, 0.4); border-radius: 4px; padding: 8px 14px; }
.tdm-keep:hover, .tdm-keep:focus-visible { color: #fff; border-color: #fff; outline: none; }

@media (max-width: 820px) {
    .tdm-strip, .tdm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tdm-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tdm-passbox { flex-direction: column; text-align: center; }
    .tdm-passbox .tdm-actions { justify-content: center; }
    .tdm-passimg { width: 100%; }
}
@media (max-width: 480px) {
    .tdm-hero { min-height: 70vh; }
    .tdm-play, .tdm-pass { flex: 1 1 100%; text-align: center; box-sizing: border-box; }
    .tdm-lock-actions > * { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .tdm-entry, .tdm-end, .tdm-lock { transition-duration: 0.01s; }
    .tdm-reel { display: none; }
}
